$(function() {

    //begin列表信息
    $("#customerTransferRecord_datagrid").datagrid({
        url: "/customerTransferRecord/list",
        columns: [[
            {field: "xxx", checkbox: 'true'},
            {field: "id", title: "编号", width: 100,hidden:true},
            {field: "name", title: "用户名", width: 100},
            {field: "tell", title: "联系电话", width: 100},
            {field: "qq", title: "qq号", width: 100},
            {field: "transferDate", title: "移交时间", width: 100},
            {field: "originalFollowerName", title: "原跟踪人", width: 100},
            {field: "targetFollowerName", title: "目标跟踪人", width: 100},

        ]],
        fit: true,
        fitColumns: true,
        pagination: true,
        rownumbers: true,
        singleSelect: true,
        striped: true,
        pageNumber:1,
        pageSize:3,
        pageList:[3,5,10,20],
        toolbar: "#customerTransferRecord_tb"
    });
    //end列表信息



    //begin处理功能方法的对象
    var obj = {
          //begin刷新按钮
        reload:function (){
            $("#customerTransferRecord_datagrid").datagrid("reload")
        },
        //end刷新按钮
    };
    //end处理功能方法的对象

    //begin处理功能方法对象,实际调用方法
    $("a[data-cmd]").click(function(){
        var cmd = $(this).data("cmd");
        obj[cmd]();
    });
    //end处理功能方法对象,实际调用方法


});

